import Vue from 'vue'
import Router from 'vue-router'
import Login from '@/components/Login'
import Search from '@/components/Search'
import Result from '@/components/Result'
import Longbi_1 from '@/pages/Longbi_1'
import Longbi_2 from '@/pages/Longbi_2'
import Longbi_3 from '@/pages/Longbi_3'
import Longbi_4 from '@/pages/Longbi_4'
import Detail from '@/pages/detail'

Vue.use(Router)

export default new Router({
  mode: 'hash',
  routes: [{
      path: '/',
      name: 'Login',
      component: Login
    },
    {
      path: '/search',
      name: 'Search',
      component: Search
    },
    {
      path: '/result',
      name: 'Result',
      component: Result
    },
    {
      path: '/result_1',
      name: 'Result_1',
      component: Longbi_1
    },
    {
      path: '/result_2',
      name: 'Longbi_2',
      component: Longbi_2
    },
    {
      path: '/result_3',
      name: 'Longbi_3',
      component: Longbi_3
    },
    {
      path: '/result_4',
      name: 'Longbi_4',
      component: Longbi_4
    },
    {
      path: '/detail/:code',
      name: 'detail',
      component: Detail
    }
  ]
})
